class Celsius:
    def __init__(self, value = 26.0):
        self.value = float(value)

    def __get__(self, instance, owner):
        return self.value

    def __set__(self, instance, value):
        self.value = float(value)

class Fahrenheit:
    def __get__(self, instance, owner):
        print('所传参数是',instance.cel)
        return instance.cel * 1.8 + 32

    def __set__(self, instance, value):
        print("instance=="+instance)
        print("value==" + value)
        instance.cel = (float(value) - 32) / 1.8

class Temperature:
    cel = Celsius()
    fah = Fahrenheit()

temp = Temperature()
print(temp.cel)
print(temp.fah)
print(None-10)